home *** CD-ROM | disk | FTP | other *** search
- // LF2 Engine
- // (C) 2002-3 7FX
- //---------------------------------------------------------------------------
- #include "basic_vs.fxh"
- //---------------------------------------------------------------------------
- // Effect for depth biased wireframe mode
- //---------------------------------------------------------------------------
- // Common parameters
- // Desc
- string desc : Description = "Zvyraznuje triangulaci objektu pomoci wireframe modu.";
- // vertex format
- string vf : VertexFormat = "POSITION";
- // Shader type phase
- string type : Type = "phase";
- //---------------------------------------------------------------------------
- // Wire color
- const float4 cWhite = {1.f, 1.f, 1.f, 1.f};
- // Matrices for fixed function technique
- const matrix cMtxW : World;
- //---------------------------------------------------------------------------
- // Techniques
- technique vs11_ps0
- <
- // streams for technique
- string stream1 = "POSITION";
- >
- {
- pass p0
- <
- // NOTE: pass is drawable!
- // stream mapping
- string streammap = "stream1";
- //string SortType = "FrontToBack";
- >
- {
- // object to world
- VertexShader = <cBasicVS>; // use shared basic vertex shader
-
- TextureFactor = <cWhite>;
- CullMode = NONE;
- FillMode = WIREFRAME;
- SlopeScaleDepthBias = -1.f;
- DepthBias = 0.f;
- ZWriteEnable = false;
-
- //AlphaBlendEnable = false;
- //SrcBlend = ONE;
- //DestBlend = ZERO;
-
- ColorOp[0] = SelectArg1;
- ColorArg1[0] = TFactor;
- AlphaOp[0] = SelectArg1;
- AlphaArg1[0] = TFactor;
- }
- }
- //---------------------------------------------------------------------------
- // Fixed function
- technique vs0_ps0
- <
- // streams for technique
- string stream1 = "POSITION";
- >
- {
- pass p0
- <
- // NOTE: pass is drawable!
- // stream mapping
- string streammap = "stream1";
- >
- {
- // matrices
- WorldTransform[0] = <cMtxW>;
-
- TextureFactor = <cWhite>;
- CullMode = NONE;
- FillMode = WIREFRAME;
- SlopeScaleDepthBias = -1.f;
- DepthBias = -0.0001f;
- ZWriteEnable = false;
-
- //AlphaBlendEnable = false;
- //SrcBlend = ONE;
- //DestBlend = ZERO;
-
- ColorOp[0] = SelectArg1;
- ColorArg1[0] = TFactor;
- AlphaOp[0] = SelectArg1;
- AlphaArg1[0] = TFactor;
- }
- }
- //---------------------------------------------------------------------------
- // Fixed function, no slope scale
- technique vs0_ps0noss
- <
- // streams for technique
- string stream1 = "POSITION";
- >
- {
- pass p0
- <
- // NOTE: pass is drawable!
- // stream mapping
- string streammap = "stream1";
- >
- {
- // matrices
- WorldTransform[0] = <cMtxW>;
-
- TextureFactor = <cWhite>;
- CullMode = NONE;
- FillMode = WIREFRAME;
- // SlopeScale cannot be used - not supported
- // NOTE: only debug runtime uses this technique, release use prev!
- //SlopeScaleDepthBias = -1.f;
- DepthBias = -0.0001f;
- ZWriteEnable = false;
-
- //AlphaBlendEnable = false;
- //SrcBlend = ONE;
- //DestBlend = ZERO;
-
- ColorOp[0] = SelectArg1;
- ColorArg1[0] = TFactor;
- AlphaOp[0] = SelectArg1;
- AlphaArg1[0] = TFactor;
- }
- }
- //---------------------------------------------------------------------------
-
-
-
- //---------------------------------------------------------------------------
- /*
- * $Header: $
- */
- //---------------------------------------------------------------------------
-